package com.xueyu.domain.outRecord;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyu.domain.personinfo.personinfoBean;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@TableName("outrecord")
public class outRecordBean implements Serializable {

    @TableId("manualRecordId")
    private int manualRecordId;

    @TableField("personId")
    private int personId;

    @TableField("personName")
    private String personName;

    @TableField("state")
    private int state;

    @TableField("visitor")
    private String visitor;

    @TableField("mobile")
    private String mobile;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("inTime")
    private String inTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("outTime")
    private String outTime;

    @TableField("remark")
    private String remark;

    @TableField("userName")
    private String userName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("signTime")
    private String signTime;

    @TableField(exist = false)
    private List<personinfoBean> personinfoBeanList = new ArrayList<personinfoBean>();

    private String realName;

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    @Override
    public String toString() {
        return "outRecordBean{" +
                "realName='" + realName + '\'' +
                '}';
    }
}
